home *** CD-ROM | disk | FTP | other *** search
- Path: baggins.cc.flinders.edu.au!sybil!doconnor
- From: doconnor@sybil.ist.flinders.edu.au (Daniel J. O'Connor)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Help with parallel port programming...
- Date: 26 Mar 1996 22:52:33 GMT
- Organization: Flinders University
- Message-ID: <4j9sfh$11k0@baggins.cc.flinders.edu.au>
- References: <4ihu64$1s5@kira.cc.uakron.edu> <31513E38.7885@fs1.ee.man.ac.uk>
- NNTP-Posting-Host: sybil.cs.flinders.edu.au
- X-Newsreader: TIN [version 1.2 PL2]
-
- Christos Dimitrakakis (mbge4cd1@fs1.ee.man.ac.uk) wrote:
-
- : You have to configure the parallel port for output before writing
- : and for input before reading, otherwise it will not work.
- : You can set it for input by :
- : First put the address at a register
- : LEA $bfe101,a1
- : set for input:
- : MOVE.b (a1),0
- : set for output
- : MOVE.b (a1),255
-
- You should ALSO allocate the parallel port resource before playing
- with it, otherwise someones print jobs will stomp all over you...
- I have some code in C as well which does all this stuff :) There is
- also some on aminet you might want to look at...
-
- Seeya
- Darius
- ~~~~~~
-